@extends('Layouts.iframe')
@section('content')
<article class="page-container">
    <form action="{{route('agent.store')}}" method="post" class="form form-horizontal" id="form-member-add" enctype="multipart/form-data">
        <input type="hidden" name="_token" value="{{csrf_token()}}">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>机构名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text {{$errors->has('name')?'error':''}}" value="{{old('name')}}" maxlength="20" placeholder="" id="name" name="name">
                @if($errors->has('name'))
                    <label id="contact_man-error" class="error" for="contact_man">{{$errors->first('name')}}</label>
                @endif
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">Logo：</label>
            <div class="formControls col-xs-8 col-sm-9"> 
                <div class="form-upLodeImg">
                    <label class="uploadHead">
                        <img src="/images/identityCard.png" data-url="/images/identityCard.png" alt="">
                        <input type="file" name="logo" onchange="getImgUrl(this)" accept="image/*" id="file_input">
                    </label>
                    <img onclick="removeImg(this)" src="/images/close.png" class="close" alt="">
                </div>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">对接人：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" maxlength="10" value="" placeholder="" id="contact_man" name="contact_man">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">联系方式：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" maxlength="15" value="" placeholder="" id="phone" name="phone">
            </div>
        </div>
        {{--@can('agent.store')--}}
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
        {{--@endcan--}}
    </form>
</article>
@endsection
@section('js')

@endsection
